package com.gitee.huanminabc.jtimerwheel.base;

import com.gitee.huanminabc.jcommon.str.StringIdentifyUtil;
import lombok.Data;

/**
 * 简要描述
 *
 * @Author: huanmin
 * @Date: 2025/4/4 02:09
 * @Version: 1.0
 * @Description: 文件作用详细描述....
 */
@Data
public class TimeSlotInfo {
    private   String    type;
    private   String  data; //表达式
    private   Integer   index;
    private   Integer     returnData; //返回的数据

    public TimeSlotInfo(String data) {
        this.data = data;
        if (StringIdentifyUtil.isNumeric(data)) {
            this.returnData = Integer.parseInt(data);
        }
    }
}
